package model.client.request;

import model.protocol.AbstractPacket;
import static model.protocol.Command.LOGIN_MESSAGE;
/**
 * @Description 像服务器端发送用户的登入信息
 * @author czc
 */
public class LoginRequestMessage extends AbstractPacket {
    private String username;

    public LoginRequestMessage(String username) {
        this.username = username;
    }

    @Override
    public Byte getCommand() {
        return LOGIN_MESSAGE;
    }

    public String getUsername() {
        return username;
    }
}
